
#pragma once

#include "CoreEngine.h"
#include "EngineCommand.h"
#include "../../CommonLib/src/ClassBase.h"

namespace FlameEngine
{
	class CoreEngineHelper:public NonCopyAssignClass
	{
	public:
		CoreEngineHelper(CoreEngine* pEngine);
		~CoreEngineHelper();

		template<typename T>
		T* CreateEngineCmd()
		{
			m_pCoreEngine->GetFrameAllocator()->CreateObject<T>(0);
		}

	private:
		CoreEngine* m_pCoreEngine;

		CoreEngineHelper(CoreEngineHelper&) = delete;
		CoreEngineHelper& operator=(CoreEngineHelper&) = delete;
	};

	
}